package com.ruoyi.common.enums;

import lombok.Getter;

/**
 * @Author tang ao long
 * @Date 2020-09-03 11:24
 * @Version 1.0
 */
@Getter
public enum  ResultCodeEnum {

    SUCCESS(true,200,"成功"),
    UserLogin_ERROR(false,401,"用户登录过期"),
    UNKNOWN_REASON(false, 201, "未知错误"),
    ERROR(false,500,"失败");

    private Integer code;

    private Boolean success;

    private String message;

    private ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

}
